<template>
  <div>
    <GoodFrom @submit="handleSubmit" />
  </div>
</template>

<script>
import GoodFrom from "./Components/GoodFrom.vue";
import {addGoods} from '@/api/products.js'
export default {
  components: {
    GoodFrom,
  },
  methods:{
    async handleSubmit(from){
      console.log(from);
      let resp = await addGoods(from);
    }
  }
};
</script>

<style>
</style>